package com.lzy.shops.service;

import com.lzy.shops.bean.Area;
import com.lzy.shops.utils.exception.ActionException;
import com.lzy.shops.utils.exception.ExistException;

import java.util.List;
import java.util.Map;

public interface AreaService {
    public Area findProvince(Integer id);
    public List<Area> findChildren(Integer id);
    public Integer addArea(Area area) throws ExistException; // 添加地区
    public Integer findAreaMaxId(Integer area_id); // 查找当前同一父id数据中id的最大值
    public Integer findByIdSameName(Integer Pid,String name);
    public Map<String,String> deleteArea(Integer id) throws ActionException; // 删除地区
    public List<Area> findByName(String areaName); // 按名称查找
}
